<?php
/**
 * Created by PhpStorm.
 * User: mr.hao
 * Date: 2018/8/16
 * Time: 15:47
 */

namespace App\Atransform;


use League\Fractal\TransformerAbstract;
use Modules\Minicode\Entities\Shouye;

class ShouyeTransform extends TransformerAbstract
{
    public function transform(Shouye $shouye)
    {
        return [
            'id'=>$shouye['id'],
            'title'=>$shouye['title'],
            'author'=>$shouye['author'],
            'content'=>$shouye['content'],
        ];
    }
}